// 添加tabs
export const setBaseProps =(state, value) =>{
    state.baseProps = value;
}
export const setGlobalState =(state, value) =>{
    state.globalState = value;
}
export const addViewIncludes= (state, data)=>{
    let viewIncludes=  state.viewIncludes ;
    let arr=viewIncludes.split(",");
    let cName=arr.find(item => item===data);
    if (!cName){
        viewIncludes=viewIncludes+data+",";
        state.viewIncludes=viewIncludes;
        console.log("addViewIncludes",data)
    }

}
export const deleteViewIncludes= (state, data)=>{
    let viewIncludes=  state.viewIncludes ;
    viewIncludes=viewIncludes.replace(data+",","")
    state.viewIncludes=viewIncludes;
    console.log("deleteViewIncludes",data)
}

